#!/bin/sh

curl --silent "http://weather.yahoo.com/china/shanghai/shanghai-2151849/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png

curl --silent "http://weather.yahooapis.com/forecastrss?p=CHXX0116&u=c" | grep -A 4 -E 'Current Conditions:' | sed -e 's/<br \/>//g' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//g' -e 's/<description>//' -e 's/<\/description>//'
